import{
    GETMOVIELISE
} from '../constnant/movieConst'

const init = {
    movieList: []
}

export default function movieReducer(preState = init , action) {

    const {
        type,
        data
    } = action

    
    switch(type){
        case GETMOVIELISE :
            return {
                ...preState , movieList: data
            }
    }

    return preState;
}